package com.aphrodite.extns.sensor;

public class AccelerationSensorUtil {

	private static AccelerationUtil instance;
	private final boolean isAccelerationSupported;
	private final ArrayList listeners;
	private final SensorInfo accelerationSensorInfo;
	private SensorConnection accelerationSensorConnection;
	private int minimumX;
	private int maximumX;
	private int minimumY;
	private int maximumY;
	private int minimumZ;
	private int maximumZ;

	/**
	 * Determines if the acceleration sensor is supported on this device.
	 * 
	 * @return true when the acceleration sensor is supported. The user might
	 *         still need to allow the usage on some systems.
	 */
	public static boolean isAccelerationSensorSupported() {
		if (instance == null) {
			instance = new AccelerationUtil();
		}
		return instance.isAccelerationSupported;
	}

}
